package task20;

public class Divide {
    public static int myDivide(int x,int y)throws Exception{
        return x/y;
    }

    public static int myDivide2(int x,int y) throws MyDivideException{
        if (y==0){
         throw new MyDivideException("异常：除数是0");
        }
        return x/y;
    }
}
